package com.wjy.demo.dao;

import com.wjy.demo.entity.UserInfo;
import org.apache.ibatis.annotations.Param;

public interface UserInfoDao {
        //用户注册
        public int insert(UserInfo entity);
        //修改用户
        public int update(UserInfo entity);
        //通过手机号查询
        //UserInfo queryByTelephone(@Param("telephone")String telephone);
        //通过用户id查询
        UserInfo queryById(@Param("id")Long id);
        //通过用户openId查询
        UserInfo queryByOpenId(@Param("openId")String openId);
        //查询所有
        //List<UserInfo> queryAll();

}
